gridpack::ymatrix::YMBranch Class Reference
#include <ymatrix_components.hpp>
List of all members.
Public Member Functions |
| YMBranch (void) |
| ~YMBranch (void) |
bool | matrixForwardSize (int *isize, int *jsize) const |
bool | matrixReverseSize (int *isize, int *jsize) const |
bool | matrixForwardValues (ComplexType *values) |
bool | matrixReverseValues (ComplexType *values) |
void | setYBus (void) |
gridpack::ComplexType | getForwardYBus (void) |
gridpack::ComplexType | getReverseYBus (void) |
void | load (const boost::shared_ptr< gridpack::component::DataCollection > &data) |
gridpack::ComplexType | getAdmittance (void) |
gridpack::ComplexType | getTransformer (YMBus *bus) |
gridpack::ComplexType | getShunt (YMBus *bus) |
void | getLineElements (const std::string tag, gridpack::ComplexType *Yii, gridpack::ComplexType *Yij) |
void | getRvrsLineElements (const std::string tag, gridpack::ComplexType *Yii, gridpack::ComplexType *Yij) |
std::vector< bool > | getLineStatus () |
std::vector< std::string > | getLineTags () |
bool | setLineStatus (std::string tag, bool status) |
void | setMode (int mode) |
double | getSusceptance (std::string tag) |
void | setParam (std::string name, double value, int idx) |
void | getYElements (std::vector< double > &yffr, std::vector< double > &yffi, std::vector< double > &yttr, std::vector< double > &ytti, std::vector< double > &yftr, std::vector< double > &yfti, std::vector< double > &ytfr, std::vector< double > &ytfi, std::vector< bool > &switched) |
Constructor & Destructor Documentation
gridpack::ymatrix::YMBranch::YMBranch |
( |
void |
|
) |
|
gridpack::ymatrix::YMBranch::~YMBranch |
( |
void |
|
) |
|
Member Function Documentation
Get values of YBus matrix. These can then be used in subsequent calculations
Return contributions to Y-matrix from a specific transmission element
- Parameters:
-
| tag | character string for transmission element |
| Yii | contribution from "from" bus |
| Yij | contribution from line element |
std::vector<bool> gridpack::ymatrix::YMBranch::getLineStatus |
( |
|
) |
|
Return status of all transmission elements
- Returns:
- vector containing status of transmission elements
std::vector<std::string> gridpack::ymatrix::YMBranch::getLineTags |
( |
|
) |
|
Return tags of all transmission elements
- Returns:
- vector containging tag of transmission elements
Return contributions to Y-matrix from a specific transmission element at to end
- Parameters:
-
| tag | character string for transmission element |
| Yii | contribution from "from" bus |
| Yij | contribution from line element |
Return the contribution to a bus from shunts
- Parameters:
-
| bus,: | pointer to the bus making the call |
- Returns:
- : contribution to Y matrix from shunts associated with branches
double gridpack::ymatrix::YMBranch::getSusceptance |
( |
std::string |
tag |
) |
|
Get branch susceptance (charging)
- Parameters:
-
| tag | string identifier for transmission element |
- Returns:
- value of susceptance
Return transformer contribution from the branch to the calling bus
- Parameters:
-
| bus,: | pointer to the bus making the call |
- Returns:
- : contribution from transformers to Y matrix
void gridpack::ymatrix::YMBranch::getYElements |
( |
std::vector< double > & |
yffr, |
|
|
std::vector< double > & |
yffi, |
|
|
std::vector< double > & |
yttr, |
|
|
std::vector< double > & |
ytti, |
|
|
std::vector< double > & |
yftr, |
|
|
std::vector< double > & |
yfti, |
|
|
std::vector< double > & |
ytfr, |
|
|
std::vector< double > & |
ytfi, |
|
|
std::vector< bool > & |
switched | |
|
) |
| | |
Return components from individual transmission elements
- Parameters:
-
| yffr | list of real parts of Yff |
| yffr | list of imaginary parts of Yff |
| yttr | list of real parts of Ytt |
| yttr | list of imaginary parts of Ytt |
| yftr | list of real parts of Yft |
| yftr | list of imaginary parts of Yft |
| ytfr | list of real parts of Ytf |
| ytfr | list of imaginary parts of Ytf |
| switched | flag on whether line is switched or not |
bool gridpack::ymatrix::YMBranch::matrixForwardSize |
( |
int * |
isize, |
|
|
int * |
jsize | |
|
) |
| | const [virtual] |
bool gridpack::ymatrix::YMBranch::matrixForwardValues |
( |
ComplexType * |
values |
) |
[virtual] |
bool gridpack::ymatrix::YMBranch::matrixReverseSize |
( |
int * |
isize, |
|
|
int * |
jsize | |
|
) |
| | const [virtual] |
bool gridpack::ymatrix::YMBranch::matrixReverseValues |
( |
ComplexType * |
values |
) |
[virtual] |
bool gridpack::ymatrix::YMBranch::setLineStatus |
( |
std::string |
tag, |
|
|
bool |
status | |
|
) |
| | |
Set the status of a transmission element based on its tag name
- Parameters:
-
| tag | name of transmission element |
| status | that transmission element should be set to |
- Returns:
- false if no transmission element with that name exists
void gridpack::ymatrix::YMBranch::setMode |
( |
int |
mode |
) |
[virtual] |
void gridpack::ymatrix::YMBranch::setParam |
( |
std::string |
name, |
|
|
double |
value, |
|
|
int |
idx | |
|
) |
| | |
Set internal parameters inside the Y-branch component
- Parameters:
-
| name | character string describing component to be modified |
| value | of parameter to be modified |
| idx | index (if necessary) of variable to be modified |
void gridpack::ymatrix::YMBranch::setYBus |
( |
void |
|
) |
|
The documentation for this class was generated from the following file: